import { tp_name } from './cfg/cmd';

const spc_obj = "uid,sn,name,usl,sl,lsl,ucl,cl,lcl,tp,num,dsn,fsn,wsn";

const reload = (sn, setMain) => {
    /*
    urlGet(null,
        {
            n: "spc",
            obj: spc_obj,
            opt: {and: [{eq: "sn", v: sn}]},
        },
        r => {
            const d = r[0];
            d["ltp"] = tp_name(d["tp"]);

            setMain(d);
        }, e => setMain(null));
        */
};

export {reload, spc_obj};
